package com.webex.ta.hydra.gui.table;

import com.webex.ta.hydra.gui.util.Gutter;

import javax.swing.*;
import javax.swing.border.Border;
import java.awt.*;

/**
 * Created by IntelliJ IDEA.
 * User: vegaz
 * Date: 2010-8-26
 * Time: 8:59:46
 * To change this template use File | Settings | File Templates.
 */
public class HydraTableBorder extends JPanel implements Border {

    public HydraTableBorder() {
        this.setLayout(new BorderLayout());

    }

    public Insets getBorderInsets(Component c) {
        return new Insets(0, 2, 2, 20);
    }

    public void paintBorder(Component c, Graphics g,
                            int x, int y, int width, int height) {
        // paint the opposite icon of what the state is
        g.setColor(Color.RED);
        g.fillRect(x, y, width, height);
//        gutter.setBounds(x, y, width, height);
//        gutter.paint(g);
    }

    public boolean isBorderOpaque() {
        return false;
    }
}
